﻿using Core.IBusiness.IPushModule;
using Core.IBusiness.IPushModule.Model;
using Core.IBusiness.ISocketModule;
using System;

namespace Core.Business.PushModule
{
    /// <summary>
    /// 电商
    /// </summary>
    public class Shop : IShopPush
    {
        Utils utils;

        public Shop(IQueue queue)
        {
            utils = new Utils(queue);
        }

        public void OrderAlreadyPay(OrderAlreadyPayModel orderAlreadyPay) => utils.PublishHelper(orderAlreadyPay);

        public void OrderCancel(OrderCancelModel orderCancel) => utils.PublishHelper(orderCancel);

        public void OrderPayTimeout(OrderPayTimeoutModel orderPayTimeout) => utils.PublishHelper(orderPayTimeout);

        public void OrderShipment(OrderShipmentModel orderShipment) => utils.PublishHelper(orderShipment);
    }
}
